<?php $kItem = $this->item; ?>
<form class="cmsform" action="" method="post" >
    <input type="hidden" value="<?php echo $this->act ?>" name="act"/>
	<table class="formtable">
	<thead>
		<tr><td class="tabletitle" colspan="3"><?php echo $this->t('he thong tu then chot'); ?></td></tr>
	</thead>
	<tbody>
                <tr>
			<td class="caption"></td>
			<td class="warning"></td>
                        <td><a href="/cms/keyword"><?php echo $this->t('them moi') ?></a></td>
		</tr>
		<tr>
			<td class="caption"><?php echo $this->t('tu then chot'); ?></td>
			<td class="warning"></td>
                        <td><input class="text" type="text" value="<?php echo $kItem['keyword'] ?>" name="keyword" /><span class="warning">*</span></td>
		</tr>
		<tr>
			<td class="caption"><?php echo $this->t('tieu de'); ?></td>
			<td class="warning"></td>
			<td><input class="text" value="<?php echo $kItem['title'] ?>" type="text" name="title" /></td>
		</tr>
                <tr>
			<td class="caption"><?php echo $this->t('Controller For Keyword'); ?></td>
			<td class="warning"></td>
			<td><input class="text" value="<?php echo $kItem['thecontroller'] ?>" type="text" name="thecontroller" /></td>
		</tr>
                <tr>
			<td class="caption"><?php echo $this->t('Action For Keyword'); ?></td>
			<td class="warning"></td>
			<td><input class="text" value="<?php echo $kItem['theaction'] ?>" type="text" name="theaction" /></td>
		</tr>
		<tr>
			<td class="caption"><?php echo $this->t('mo ta'); ?></td>
			<td class="warning"></td>
                        <td>
                            <textarea name="des"><?php echo $kItem['des'] ?></textarea>
                        </td>
		</tr>
	</tbody>
	<tfoot>
		<tr><td colspan="3"><button type="submit">Save Infomation</button><button type="reset">Reset</button></td></tr>
	</tfoot>
	</table>
</form>
<?php if (count($this->list)>0): ?>
<div class="cmsform">
    <table class="mytable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <td width="50px">-</td>
            <td width="150px"><?php echo $this->t('tu then chot')?></td>
            <td width="150px"><?php echo $this->t('tieu de')?></td>
            <td width="150px"><?php echo $this->t('Controller For Keyword')?></td>
            <td width="150px"><?php echo $this->t('Action For Keyword')?></td>
            <td width="*"><?php echo $this->t('mo ta')?></td>
        </tr>
    </thead>
    <tbody>
       <?php
       $i = 0;
       foreach($this->list as $item): ?>
       <tr <?php echo $i++%2==0?"class='rows'":"" ?>>
           <td width="50px">
               <a href="/cms/keyword/index/key/<?php echo $item['keyword'] ?>" ><?php echo $this->t('sua')?></a>
              -<a href="/cms/keyword/del/key/<?php echo $item['keyword'] ?>" ><?php echo $this->t('xoa')?></a>
           </td>
            <td width="150px"><?php echo $item['keyword']; ?></td>
            <td width="150px"><?php echo $item['title']; ?></td>
            <td width="150px"><?php echo $item['thecontroller']; ?></td>
            <td width="150px"><?php echo $item['theaction']; ?></td>
            <td width="*"><?php echo $item['des']; ?></td>
        </tr>
       <?php endforeach; ?>        
    </tbody>
   
</table>
</div>
<?php endif; ?>

